package cn.com.mapper;

import cn.com.beans.FractionInfo;import org.apache.ibatis.annotations.Param;

public interface FractionInfoMapper {
    int deleteByPrimaryKey(Integer frId);

    int insert(FractionInfo record);

    int insertSelective(FractionInfo record);

    FractionInfo selectByPrimaryKey(Integer frId);

    int updateByPrimaryKeySelective(FractionInfo record);

    int updateByPrimaryKey(FractionInfo record);

    /**
     * 根据年份和ID查找分数
     *
     * @param year
     * @param id
     * @return
     */
    Integer findScoreByYearAndId(@Param("year") Integer year, @Param("id") Integer id,@Param("type") Integer type);

    /**
     * 根据条件查询
     * @param fractionInfo 条件实体
     * @return 查询到的实体
     */
    FractionInfo findAll(FractionInfo fractionInfo);
}